package org.easydev.wechat.client.util;

/**
 * 配置信息
 */
public class WechatReqConfig {

    /**
     * 请求id
     */
    private String key;

    /**
     * 请求url
     */
    private String url;

    /**
     * get post 默认GET
     */
    private String method = WechatReqUtil.DEFAULT_HTTP_METHOD;

    /**
     * 处理类，有默认值
     */
    private String mappingHandler = WechatReqUtil.DEFAULT_MAPPINGHANDLER;

    /**
     * 数据类型
     */
    private String datatype = WechatReqUtil.DEFAULT_DATATYPE;

    /**
     * get key
     * 
     * @return Returns the key.<br>
     */
    public String getKey() {
        return key;
    }

    /**
     * set key
     * 
     * @param key The key to set. <br>
     */
    public void setKey(String key) {
        this.key = key;
    }

    /**
     * get url
     * 
     * @return Returns the url.<br>
     */
    public String getUrl() {
        return url;
    }

    /**
     * set url
     * 
     * @param url The url to set. <br>
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * get method
     * 
     * @return Returns the method.<br>
     */
    public String getMethod() {
        return method;
    }

    /**
     * set method
     * 
     * @param method The method to set. <br>
     */
    public void setMethod(String method) {
        this.method = method;
    }

    /**
     * get mappingHandler
     * 
     * @return Returns the mappingHandler.<br>
     */
    public String getMappingHandler() {
        return mappingHandler;
    }

    /**
     * set mappingHandler
     * 
     * @param mappingHandler The mappingHandler to set. <br>
     */
    public void setMappingHandler(String mappingHandler) {
        this.mappingHandler = mappingHandler;
    }

    /**
     * get datatype
     * 
     * @return Returns the datatype.<br>
     */
    public String getDatatype() {
        return datatype;
    }

    /**
     * set datatype
     * 
     * @param datatype The datatype to set. <br>
     */
    public void setDatatype(String datatype) {
        this.datatype = datatype;
    }

}
